{assign $pathImageEntreprise = ENTREPRISE_PATH_PHOTO}
<div id="global" class="search">
  {$oZoneHeader}
  <div id="main">
    {$oZoneBreadCrumb}
    <div id="leftContent2">
      <div id="liste_entreprise">

        <h2>{$type->type_name} {if $deptNom}{$deptNom->departement_nom} {elseif $ville}{$ville} {elseif $region} {$region} {/if}</h2>
        <div class="wrap">
        {if $region}
          <div class="resultat"><div class="resultatB">Réponses avec <strong>" {$type->type_name} " </strong> et <strong> "{if $deptNom}{$deptNom->departement_nom} {elseif $ville}{$ville}{elseif $region} {$region}{/if} ": {$nb}</strong> entreprises trouvées</div></div>
          {else}
             <div class="resultat"><div class="resultatB">Réponses avec <strong>"{$type->type_name}"</strong>: {$nb}</strong> entreprises trouvées</div></div>
          {/if}
          {$oZoneEntrepriseHeader}

          {foreach $entreprise as $item}
          <div class="block">
          	<div class="bBlocks">
                <div class="b1">
                <div class="infos">{$item->entreprise_name}</div>
                <div class="adresse">
                  <p>{$item->entreprise_adresse}</p>
                  <p>{$item->entreprise_cp} {$item->entreprise_ville} </p>
                  {if $item->entreprise_tel != "NULL" && $item->entreprise_tel && $item->iTypeId!=1}
                    <p><img src="{$j_basepath}design/front/images/phone.png" alt="" />Tél : {$item->entreprise_tel} * </p>
                  {else if( $item->iTypeId==1 && $item->zNumeroSurTaxe)}
                    <p><img src="{$j_basepath}design/front/images/phone.png" alt="" />Tél : {$item->zNumeroSurTaxe} * </p>
                  {/if}
                  {if $item->entreprise_fax != "NULL" && $item->entreprise_fax}
                  <p>Fax  : {$item->entreprise_fax} </p>
                  {/if}
                </div>
              </div>
              <div class="b2">{if $item->entreprise_logo} <a href="#"><img src="{$pathImageEntreprise}{$item->entreprise_logo}" alt="{$item->entreprise_name}" /></a>{/if}
              {if $item->entreprise_description || $item->entreprise_ouverture || $item->entreprise_piece}
                <div class="desc">
                  <p><a href="#">{$item->entreprise_description} </a>{if $item->entreprise_ouverture}<br />Horaires d'ouverture : {$item->entreprise_ouverture}{/if}{if $item->entreprise_piece}<br /><span style="font-size:0.9em;">Vente aux particuliers </span>{/if}</p>
                </div>
              {/if}
              </div>
            </div>
          </div>
          {/foreach}

          <p style="width:100%; display:block; margin:0 0 12px; padding:0; clear:left;">* mise en relation 1,35 €/appel + 0,34 €/min</p>
          <div class="pagination2"> 
          {if $oNavBar->iNbPages > 1}
            {if $oNavBar->iPrevPage > 0}
               <a href="{jurl 'entreprise~FoEntreprise:entreprise', array('iCurrentPage' => $oNavBar->iPrevPage,'type'=>$type->type_name, 'cur'=>$deptNum, 'dept'=>$dpt)}" class="prec" title="Précedente"></a>
            {/if}
            <div class="cont">
              <ul>
                  {foreach $oNavBar->tiPages as $iPage}
                    <li> 
                       <a class="{if $iPage == $oNavBar->iCurrPage}active{/if}" href="{jurl 'entreprise~FoEntreprise:entreprise', array('iCurrentPage' => $iPage,'type'=>$type->type_id, 'cur'=>$deptNum, 'dept'=>$dpt)}">{$iPage}</a>
                    </li>
                  {/foreach}
              </ul>
            </div>

            <div class="autres">
                {if $oNavBar->iNbPages > $oNavBar->iCurrPage}
              <a href="{jurl 'entreprise~FoEntreprise:entreprise', array('iCurrentPage' => $oNavBar->iNextPage,'type'=>$type->type_id, 'cur'=>$deptNum, 'dept'=>$dpt)}" title="Suivante" class="suiv" style="margin-top:0; margin-right:5px;" ></a>
                  <a href="{jurl 'entreprise~FoEntreprise:entreprise', array('iCurrentPage' => $oNavBar->iNextPage,'type'=>$type->type_id, 'cur'=>$deptNum, 'dept'=>$dpt)}" title="Suivante">Suivant</a>
                {/if}
                
                <a href="{jurl 'localite~FoLocalite:entreprise', array('id'=>$type->type_id)}">Nouvelle recherche</a>
            </div>
            <div class="clear">&nbsp;</div>
            <div align="center" style="float:left; text-align:center;"><a style="text-align:center; display:inline-block; color:#484747; margin:7px 0 0 175px;" href="#global">Haut de page {$type->type_name} {if $deptNom}{$deptNom->departement_nom} {elseif $ville}{$ville}{else} {$region}{/if}</a></div>
            <div class="clear">&nbsp;</div>
           {else}
            <div class="autres" style="padding:2px 0 0 79px;">
               <a href="#global">Haut de page {$type->type_name} {if $deptNom}{$deptNom->departement_nom} {elseif $ville}{$ville}{else} {$region}{/if}</a>
               <a href="{jurl 'localite~FoLocalite:index', array('id'=>$type->type_id)}">Nouvelle recherche</a>
           </div>

           <div class="clear">&nbsp;</div>
           {/if}
          </div>
        </div>
        <div class="deco">&nbsp;</div>
      </div>
      <!-- end liste entreprise-->
       {$oZoneEntrepriseRestrict}
    </div>
    <div id="rightContent">
        {meta_html js $j_basepath.'design/front/js/carousel_custom2.js'}
        <div id="annonces2">{$oZoneDiapoAnnonce}</div>
        {$oZoneRightContent}
        {$oZoneMarquePopulaire}
    </div>
    <div class="clear">&nbsp;</div>
  </div>
  <div id="SideBar"><a href="#" id="top"><img alt="" src="{$j_basepath}design/front/images/top.png" title="" /></a></div>
</div>
{$oZoneFooter}

{literal}
<script type="text/javascript">
    $('#top').click(function () {
        $('#global').focus();
    });
</script>
{/literal}
{$oZonePubHidden}


